package com.baosight.sczx.zm.ch.service;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.ep.ServiceEPBase;
import com.baosight.sczx.common.zm.basetools.StaticTools;
import com.baosight.sczx.zm.cp.domain.ZMCPProducePlanJD;
/**
 * <p>Title: ServiceZMCP0A.java</p>
 * <p>Description: 机电运输计划明细</p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张坤
 * @version 1.0
 * <pre>Histroy:
 *          2016-03-21 下午02:51:04  张坤  Create
 *</pre>
 */
public class ServiceZMCHA001 extends ServiceEPBase {
	/**
	 * <p>Function: initLoad</p>
	 * <p>Description: 初始化</p>
	 * <p>return value: ServiceZMCP02</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2016-03-21下午02:51:38 张坤
	 * </p>
	 */
	@Override
	public EiInfo initLoad(EiInfo inInfo) {
		inInfo.addBlock(EiConstant.resultBlock).set("showCount", "true");//如果不加这个，翻页的统计和显示是错误的 	
		EiInfo outInfo = this.query(inInfo);

		return outInfo;
	}
	
	/**
	 * <p>Function: query</p>
	 * <p>Description: 查询</p>
	 * <p>return value: ServiceZMCP02</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2016-03-21下午02:51:58 张坤
	 * </p>
	 *
	 */
	@Override
	public EiInfo query(EiInfo inInfo) {
 	
		String fdProfessionalplanId = inInfo.getString("keyId");
		StaticTools.setQueryParameters(inInfo, "fdProfessionalplanId", fdProfessionalplanId, true);
		EiInfo outInfo = super.query(inInfo, "ZMCPProducePlanJD.query", new ZMCPProducePlanJD());		

		return outInfo;
		
	}
		

}
